SOURCES=$(wildcard *.cpp)
OBJECTS=$(SOURCES:.cpp=.o)

all: r
	

r: $(OBJECTS)
	g++ $^ -o $@

$(OBJECTS): %.o: %.cpp
	g++ -c $< -o $@
	
	
clean:
	rm -f *.o *.exe

.PHONY: clean all